package Grade;


import java.util.Scanner;

public class Main {
    public static void main(String[] args) throws Exception {
        int maxSize=100;
        Scanner sc=new Scanner(System.in);
        System.out.println("请输入学生的总数：");
        int n= sc.nextInt();
        System.out.println("请按序号，学号，姓名，性别，数学成绩，英语成绩，语文成绩，总分分别录入信息：");
        StudentSqList L=new StudentSqList(maxSize,n);
        L.display();
        L.sort();

        System.out.println("请输入想要查询学生的学号：");
        L.displayNode(L.get(sc.nextInt()));



        System.out.println("请输入要删除学生的学号：");
        L.remove(sc.nextInt());
        System.out.println("删除成功");
        L.display();

        System.out.println("请输入需要增加的学生信息：");
        L.insert(new StudentNode(sc));
        L.display();

    }
}
